<script type="text/javascript" src="${base}/scripts/cggl/cgdtzcontent.js"></script>
<form id="cgdtzForm" method="post" class="easyui-tabs" fit="true">
    <input name="cgd.id" type="hidden" value="${(cgd.id)!''}"/>

    <div title="采购单" style="height: 100%;overflow-y: auto">
        <table style="width:98%;margin: 5px;" class="tb tab-t t-bor">
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <col width="80px"/>
            <col width=""/>
            <tr>
                <th style="font-size:14px;font-weight:bold">采购单号：</th>
                <td colspan="3" style="font-size:14px;font-weight:bold">${(cgd.cgdh)!}
                </td>

                <th style="color:#f45212;">采购时间：</th>
                <td><#if cgd.id??>${(cgd.cgsj?date)!}<#else>${sysdate?date}</#if></td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">合同编码：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cght.htbm)!}</td>
                <th style="font-size:14px;font-weight:bold">采购类型：</th>
                <td style="font-size:14px;font-weight:bold" id="cgdtz_cglx">
                <#if cgd?? && cgd.cglx?? && cgd.cglx=="cgrk" >采购入库<#else>
                    <#if cgd?? && cgd.cglx?? && cgd.cglx=="zddh" >直达到货
                    <#elseif cgd?? && cgd.cglx?? && cgd.cglx=="bght">保供采购
                    <#else>统配采购</#if>
                </#if>
                </td>

                <th style="font-size:14px;font-weight:bold">供应商：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.gys.jc)!}</td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">申报公司：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.sbgs.jc)!}</td>

                <th style="font-size:14px;font-weight:bold">申报部门：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.sbbm.qc)!}</td>

                <th style="font-size:14px;font-weight:bold">申报人：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.sbr.xm)!}</td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">采购公司：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cggs.jc)!}</td>
                <th>发货单位：</th>
                <td>
                    ${(cgd.fhgs.z)!}
                </td>
                <th>发货日期：</th>
                <td><#if cgd.id??>${(cgd.fhrq?date)!}<#else>${sysdate?date}</#if></td>
            </tr>
            <tr>
                <th>到货日期：</th>
                <td><#if cgd.id??>${(cgd.jhdhrq?date)!}<#else>${datetime?date}</#if>
                </td>
                <th>承运单位：</th>
                <td>${(cgd.ysdw.z)!}</td>
                <th>承运号：</th>
                <td>${(cgd.cyh)!}</td>
            </tr>
            <tr>
                <th>到货仓库：</th>
                <td>${(cgd.dzck.qc)!}</td>
                <th>联系电话：</th>
                <td>${(cgd.lxrdh)!}</td>
                <th>税率(%)：</th>
                <td>${(cgd.sl?number)!}</td>
            </tr>
        <#if cgd.cglx=='zddh'>
            <tr>
                <th style="font-size:14px;font-weight:bold">销售单号：</th>
                <td colspan="3" style="font-size:14px;font-weight:bold">${(cgd.xsd.xsdh)!}
                </td>
                <th style="font-size:14px;font-weight:bold">综合服务费(%):</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.cght.ll?string(",##0.0000"))!}
                </td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">销售合同：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.xsd.xsht.htbm)!}</td>

                <th style="font-size:14px;font-weight:bold">客户名称：</th>
                <td style="font-size:14px;font-weight:bold">${(cgd.xsd.kh.jc)!}</td>

                <th>提货人：</th>
                <td>
                ${(cgd.xsd.thr)!}
                </td>
            </tr>
            <tr>
                <th style="font-size:14px;font-weight:bold">总部销售：</th>
                <td>
                    <#if cgd?? && cgd.xsd?? &&cgd.xsd.sbgs.id!=cgd.xsd.xsgs.id>是<#else>否</#if>
                </td>
                <th style="font-size:14px;font-weight:bold">销售公司：
                </th>
                <td style="font-size:14px;font-weight:bold" colspan="3">
                ${(cgd.xsd.xsgs.jc)!}
                </td>
            </tr>
        </#if>
            <tr>
                <th>备注：</th>
                <td colspan="5">${(cgd.bz)!}</td>
            </tr>
        </table>
    </div>
    <div title="采购明细">
        <table id="cgdtz_mx">
        </table>
    </div>
    <div title="关联费用">
        <table id="cgdtz_fy">
        </table>
    </div>
</form>